<%@page import="com.etc.travel.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link
	href="http://css.mafengwo.net/css/cv/css+base:css+jquery.suggest:css+plugins:css+plugins+jquery.jgrowl:css+other+popup:css+mfw-header.2015^YlVS^1527308432.css"
	rel="stylesheet" type="text/css" />


<div id="header" xmlns="http://www.w3.org/1999/html">
	<div class="mfw-header">
		<div class="header-wrap clearfix">
			<div class="head-logo">
				<a href="DiaryServlet?flag=toindex"><img src="image/logohead.png"></a>
			</div>

			<ul class="head-nav" data-cs-t="headnav" id="_j_head_nav">
				<li class="head-nav-index" data-cs-p="index"><a
					href="http://localhost:8080/travel/DiaryServlet?flag=toindex">首页</a></li>
				<li class="head-nav-place" data-cs-p="mdd"><a
					href="PlaceServlet?flag=place" title="目的地">目的地</a></li>
				<li class="head-nav-gonglve" data-cs-p="gonglve"><a
					href="guides.jsp" title="旅游攻略">旅游攻略</a></li>
				<li class="head-nav-gonglve" data-cs-p="gonglve"><a
					href="DiaryServlet?flag=alldiary" title="旅游游记">旅游游记</a></li>
				<li class="head-nav-hotel" data-cs-p="hotel"><a
					href="SellerServlet?flag=queryall" title="酒店">酒店</a></li>
			</ul>
			<div class=split>
				<div class="login-out">
					<span style="font-size: 20px; color: #C7254E;">欢迎</span>&nbsp;&nbsp;&nbsp;&nbsp;
					<!-- user和商家未登录 -->
					<c:if test="${sessionScope.user==null&&sessionScope.seller==null}">
						<a id="_j_showlogin" title="登录蜂窝煤" href="login.jsp" rel="nofollow">登录</a>
						<span class="split">|</span>
						<a href="register.jsp" title="注册帐号" rel="nofollow">注册</a>
					</c:if>
					<!-- user已登录 -->
					<c:if test="${sessionScope.user!=null}">
						<span><font size="4" color="orange"><a
								onclick="window.open('userinfo.jsp')">${sessionScope.user.user_name}</a></font></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="UserServlet?flag=loginout"><font size="3" color="orange">注销</font></a>
					</c:if>

					<!-- 商家已登录 -->
					<c:if test="${sessionScope.seller!=null}">
						<span><font size="4" color="orange"><a
								onclick="window.open('SellerManage.jsp')">${sessionScope.seller.seller_name}</a></font></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="SellerServlet?flag=loginout"><font size="3"
							color="orange">注销</font></a>
					</c:if>

				</div>
			</div>
		</div>
	</div>
</div>
